﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace School.SystemManage.WebPages.SchoolIntro
{
    public partial class Introduction : System.Web.UI.Page
    {
        TechnologySchoolEntities db = new TechnologySchoolEntities();
        Article schoolIntroArticle = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            schoolIntroArticle = db.Article.First(a => a.SubMenu.Categories == 0);
            if (schoolIntroArticle == null)
            {
                schoolIntroArticle = new Article();
            }
        }
    }
}
